package com.groupwork.meeting.entity;

import java.util.Objects;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2021/11/1 23:23
 * @Description //TODO 权限的实体类
 */

public class Power {
    private String powerId;
    private String powerName;
    private String powerDescribe;
    private String path;
    private String icon;

    public String getPowerId() {
        return powerId;
    }

    public void setPowerId(String powerId) {
        this.powerId = powerId;
    }

    public String getPowerName() {
        return powerName;
    }

    public void setPowerName(String powerName) {
        this.powerName = powerName;
    }

    public String getPowerDescribe() {
        return powerDescribe;
    }

    public void setPowerDescribe(String powerDescribe) {
        this.powerDescribe = powerDescribe;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Power)) {
            return false;
        }
        Power power = (Power) o;
        return Objects.equals(getPowerId(), power.getPowerId()) && Objects.equals(getPowerName(), power.getPowerName()) && Objects.equals(getPowerDescribe(), power.getPowerDescribe()) && Objects.equals(getPath(), power.getPath()) && Objects.equals(getIcon(), power.getIcon());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getPowerId(), getPowerName(), getPowerDescribe(), getPath(), getIcon());
    }

    @Override
    public String toString() {
        return "Power{" +
                "powerId='" + powerId + '\'' +
                ", powerName='" + powerName + '\'' +
                ", powerDescribe='" + powerDescribe + '\'' +
                ", path='" + path + '\'' +
                ", icon='" + icon + '\'' +
                '}';
    }
}
